@echo off

del result.log

FOR /F %%f IN ('dir /B /O:N *.sql') DO (
  echo.%%f
  echo.%%f >> result.log
  SQLCMD -S. -dIMAGine -E -i "%%f" >> result.log
  echo. >> result.log
)